Skip to main content

Custom Commands

Table of Contents

What are Custom Commands?

Custom Commands allow server administrators to create their own unique commands for players to use. These commands can be set up to run one or more other commands (like giving items, sending messages, or teleporting players) with a simple custom name. This makes it easier to automate actions and provide custom functionalities on your server.

How to Access the Custom Commands Menu

To access the Custom Commands Menu, open the admin panel and locate "Custom Commands".

Custom Commands Menu Options

Once you open the Custom Commands Menu, you will see options to manage your custom commands:

  • Add New Command: Create a brand new custom command.
  • Edit Existing Commands: Modify or delete commands that have already been created.

Add New Command

This option guides you through creating a new custom command:

  1. Initial Setup:

    • Command Name: Enter the name for your new command (e.g., givemeiron). You do not need to include the command prefix (like !) here.
    • Command Type:
      • Player Command: Anyone can use this command.
      • Admin Command: Only players with administrator privileges can use this command.
    • Description: Provide a brief explanation of what the command does.
    • Number of Commands to Execute: Use the slider to choose how many separate commands this custom command will run (from 1 to 10). For example, if you want it to give an item and then send a message, you'd select 2.
  2. Defining the Commands:

    • After the initial setup, you will be prompted to enter the actual Minecraft commands for each "Number of Commands to Execute" you selected.
    • Enter Command #1 (and subsequent commands): Type the full Minecraft command here, exactly as you would in the chat, but without the leading /.
      • Example: To give the player a diamond, you would type give @s diamond.
      • Example: To send a message, you would type say Hello World.

After entering all the details, the command will be saved and ready for use.

Edit Existing Commands

This option allows you to manage previously created custom commands:

  1. You will see a list of all your custom commands. Each command will show its name and whether it's a [Player] or [Admin] command.
  2. Select a command from the list to:
    • Modify its name, type, description, or the commands it executes.
    • Delete the command permanently. If you choose to delete, you will be asked for confirmation.

Important Notes

Command Prefix

When players use your custom commands in the chat, they will need to include the server's command prefix (e.g., !). So, if your prefix is ! and your command name is givemeiron, players would type !givemeiron.

Player Commands vs. Admin Commands

Be mindful when setting the "Command Type".

  • Player Commands are accessible to all players.
  • Admin Commands are restricted to administrators. If a regular player tries to use an Admin Command, they will receive a message stating they don't have permission.

Multiple Commands

You can chain multiple Minecraft commands together under one custom command. This is powerful for creating complex actions, such as a single custom command that gives a player multiple items, teleports them, and sends a welcome message.

Deleting Commands

When deleting a command, ensure you truly want to remove it, as this action is permanent.